<template>
	<div class="card-content" :style="{ height: height, width: width,background: color }">
		<div class="card-left"><img :src="img" alt="" /></div>
		<div class="card-right">
			<p>{{ title }}</p>
			<p>{{ num }}</p>
		</div>
	</div>
</template>

<script>
export default {
	props: {
		className: {
			type: String,
			default: 'Order-column-chart'
		},
		width: {
			type: String,
			default: '250px'
		},
		height: {
			type: String,
			default: '100px'
		},
		color: {
			type: String,
			default: '#61a1f9'
		},
		title: {
			type: String,
			default: '订单总数'
		},
		img: {
			type: String,
			default: ''
		},
		num: {
			type: String,
			default: '0'
		}
	},
	data() {
		return {};
	},
	watch: {},
	mounted() {},
	beforeDestroy() {},
	methods: {}
};
</script>

<style scoped="scoped">
.card-content {
	display: flex;
	background: rgba(255, 255, 255, 1);
	box-shadow: 0px 6px 10px 0px rgba(0, 0, 0, 0.14);
	border-radius: 4px;
	box-sizing: border-box;
}
.card-left {
	border-radius: 4px;
}
.card-content .card-left p {
	margin: 11px 0 10px 18px;
	line-height: 18px;
	font-size: 18px;
}
.card-content .card-left img {
	margin: 22px 11px;
	display: block;
	width: 56px;
	height: 56px;
}
.card-content .card-right {
	margin-left: 10px;
	flex: 1;
}
.card-content .card-right p {
	line-height: 28px;
	text-align: left;
	color: #FFFFFF;
}
.card-content .card-right p:first-child {
	margin-top: 22px;
}
.card-content .card-right p:last-child {
	font-size: 22px;
	font-weight: bold;
}
</style>
